package titt.service.content;

import java.io.OutputStream;

import titt.io.socket.in.TITTInputStream;
import titt.io.socket.out.TITTOutputStream;
import titt.util.io.pipe.PipeListener;

public interface NuderContent {

	int getLength();
	
	<T> T getContentObject();
	TITTInputStream getContentStream();
	
	void writeToStream(OutputStream out, PipeListener... listeners) throws Exception;
	void writeToStream(TITTOutputStream out, PipeListener... listeners) throws Exception;
	
	void waitForCompletion();
}
